package com.bjpowernode.crm.settings.service;

import com.bjpowernode.crm.settings.domain.User;

import java.util.Map;

/**
 * ClassName: LoginService<br/>
 * Package: com.bjpowernode.crm.settings.service<br/>
 * Description: <br/>
 * Date: 2022/6/11 20:06<br/>
 * Auther:对的我写的，错的我同事写的<br/>
 */
public interface LoginService {

    /**
     * 通过用户名和密码查询用户从而验证用户登录
     * @param loginMap(用户名和密码封装在map集合当中)
     * @return
     */
    public User selectUserByUsernameAndPassword(Map<String,Object> loginMap);

    /**
     * 通过用户名判断用户是否存在
     * @param loginAct
     * @return
     */
    User selectUserByUsername(String loginAct);
}
